<template>
  <div class='xtx-bread'>
    <slot />
  </div>
</template>

<script>
import { provide } from 'vue'
export default {
  name: 'XtxBread',
  props: {
    separator: {
      type: String
    }
  },
  setup (props) {
    provide('separator', props.separator)
  }
}
</script>

<style scoped lang='less'>
.xtx-bread {
  display: flex;
  padding: 25px 10px;

  // 最后一个i隐藏
  ::v-deep i:nth-last-child(1) {
    display: none;
  }
}
</style>
